<?php

class dancefloormayhem_scraper extends BlogScraper
{
    function __construct()
    {
        parent::__construct('dancefloormayhem');
    }

    function getPostLinks()
    {
        return $this->xpath->query('//h3//a');
    }
    
}
    
class dancefloormayhem_post_scraper extends PostScraper
{
    function getDate()
    {
        $date = $this->xpath->query("//h2[@class='date-header']")->item(0)->nodeValue;
        
        list($day_name, $date) = explode(',', $date, 2);
        return date('Y-m-d H:i:s', strtotime($date));

    }
    
    function prepareTrack($track)
    {
        $track['name'] = str_replace('[click to download]', '', trim($track['name']));
        $track['song'] = str_replace('[click to download]', '', trim($track['song']));
        return $track;
    }
    
    
}

?>